<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>教师管理 - 在线考试系统</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="navbar">
        <h1>在线考试系统 - 教师端</h1>
    </div>

    <div class="content">
        <div class="section">
            <h2>创建新考试</h2>
            <form action="{{ url_for('create_exam') }}" method="POST">
                <div class="form-group">
                    <label for="exam-title">考试班级</label>
                    <select name="class_type" id="class_type">
                        <option value="classxuanze">1班</option>
                        <option value="class2">2班</option>
                        <option value="class">3班</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="subject_type">考试科目</label>
                    <select name="subject_type" id="subject_type">
                        <option value="subjectsxuanze">数学</option>
                        <option value="subject2">历史</option>
                        <option value="subjects">政治</option>
                    </select>
                </div>
                <button type="submit" class="primary-btn">创建考试</button>
            </form>
        </div>

        <div class="section">
            <h2>管理现有考试</h2>
            <table>
                <thead>
                    <tr>
                        <th>考试名称</th>
                        <th>考试日期</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>数学期中考试</td>
                        <td>2024-09-01</td>
                        <td><a href="#" class="btn">编辑</a> <a href="#" class="btn">删除</a></td>
                    </tr>
                    <tr>
                        <td>物理期中考试</td>
                        <td>2024-09-05</td>
                        <td><a href="#" class="btn">编辑</a> <a href="#" class="btn">删除</a></td>
                    </tr>
                </tbody>
            </table>
        </div>

       <div class="section">
            <h2>查看学生成绩</h2>
                <form action="{{ url_for('create_exam') }}" method="POST">
                <div class="form-group">
                    <label for="grade_class_type">选择班级</label>
                    <select name="grade_class_type" id="grade_class_type">
                        <option value="class1">1班</option>
                        <option value="class2">2班</option>
                        <option value="class3">3班</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="grade_subject_type">选择科目</label>
                    <select name="grade_subject_type" id="grade_subject_type">
                        <option value="math">数学</option>
                        <option value="history">历史</option>
                        <option value="politics">政治</option>
                    </select>
                </div>
                <button type="submit" class="primary-btn">查看成绩</button>
            </form>
        </div>
    </div>
</body>
</html>
